<?php
/**
 * Created by PhpStorm.
 * User: s.utkin
 * Date: 14.11.2014
 * Time: 14:40
 */

namespace Pinenut;


class Cookie {
	public static function setValue($key, $value)
	{
		$_COOKIE[$key] = $value;
	}

	public static function getValue($key, $default = null)
	{
		return isset($_COOKIE[$key]) ? $_COOKIE[$key] : $default;
	}

	public function unsetValue($key)
	{
		unset ($_COOKIE[$key]);
	}
} 